<?php
/*session_start();
$currentUser=isset($_SESSION["user"])?$_SESSION["user"]:null;
if($currentUser) echo "welcome";
else echo "access denied";*/
$id=$_GET["Id"];
$sql="SELECT * FROM 'article' where Id='$id'";
$conn=new mysqli("localhost","root","","myblood");
$rs=$conn->query($sql);
if($conn->error) die($conn->error);
$detail=$rs->fetch_assoc();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
        <title>第一网页</title>

    </head>
    <body>
        <h3><?=$detail["title"]?></h3>
        <div>
            <?=$detail["authorname"]?>
            <?=$detail["updatetime"]?>
        </div>
        <div>
            <?=$detail["content"]?>
        </div>
        <a href="article_list.php">返回列表</a>
    </body>
</html>